package com.axc.gallery2.edit.overLay;



public class OverLayAdapter {
	public IOverLaybaseMethod iOverLaybaseMethod;
	public IControlActivity controlActivity;

	public void setCandraw(IOverLaybaseMethod imMethod) {
		iOverLaybaseMethod = imMethod;
		iOverLaybaseMethod.setCandraw();
	}

	public void setTopImg(IOverLaybaseMethod imMethod, int bitmap, int sbitmap) {
		iOverLaybaseMethod = imMethod;
		iOverLaybaseMethod.setTopImg(bitmap,sbitmap);
		setCandraw(imMethod);
	}

	public void enSure(IOverLaybaseMethod imMethod) {
		iOverLaybaseMethod = imMethod;
		iOverLaybaseMethod.enSure();
	}

	public void setCancel(IOverLaybaseMethod imMethod){
		iOverLaybaseMethod = imMethod;
		iOverLaybaseMethod.setCancel();
	}
	public void setShape(IOverLaybaseMethod imMethod,int shape){
		switch (shape) {
		case 0:
			ovalShape(imMethod);
			break;
		case 1:
			rectangleShape(imMethod);
			break;
		case 2 :
			trigonShape(imMethod);
			break;
		default:
			break;
		}
	}
	public void setPenStyle(IOverLaybaseMethod iMethod,int style){
		switch (style) {
		case 0:
			setPenfillStyle(iMethod);
			break;
		case 1:
			setPenHollowStyle(iMethod);
			break;
		}
	}
	public void ovalShape(IOverLaybaseMethod iMethod){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.CircleShape();
	}
	public void rectangleShape(IOverLaybaseMethod iMethod){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.rectangleShape();
	}
	public void trigonShape(IOverLaybaseMethod iMethod){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.trigonShape();
	}
	
	public void setPenHollowStyle(IOverLaybaseMethod iMethod){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.setPenHollowStyle();
	}
	public void setPenfillStyle(IOverLaybaseMethod iMethod){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.setPenfillStyle();
	}
	public void bgEraser(IOverLaybaseMethod iMethod,int size){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.bgEraser(size);	
	}
	
	public void setEarseSize(IOverLaybaseMethod iMethod,int size){
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.EarseSize(size);
	}
	/*public void ImageZoom(IOverLaybaseMethod iMethod,int mx, int my, int miDTX, int miDTY,
			int nguiderWidth, int nguiderHeight, boolean canZoom,
			boolean haschange, Bitmap guiderBitmap, int r, int tx, int ty){
		new DecorateImage().picZooms(mx, my, miDTX, miDTY, nguiderWidth, nguiderHeight, canZoom, haschange, guiderBitmap, r, tx, ty);
		iOverLaybaseMethod = iMethod;
		iOverLaybaseMethod.CanZoom();
		iOverLaybaseMethod.HasChange();
	}
	public void ImageSpin(int mx, int my, int miDTX, int miDTY, int nguiderWidth,
			int nguiderHeight, Bitmap guiderBitmap, int r, int tx, int ty){
		new DecorateImage().ImgSpin(mx, my, miDTX, miDTY, nguiderWidth, nguiderHeight, guiderBitmap, r, tx, ty);
	}*/
	public void BackToPreActivity(IControlActivity control){
		controlActivity=control;
		controlActivity.BacktopreActivity();
	}
	
}
